import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const setting = {
    path: '/setting',
    component: Layout,
    name: 'Setting',
    meta: {
        title: '综合设置',
        code: 'dlyh_r_a6_1'
    },
    redirect: '/setting/business/maintenance-project',
    children: [
        // {
        //     path: 'base',
        //     component: LayoutInset,
        //     name: 'baseDataManage',
        //     meta: {
        //         title: '基础数据',
        //         iconSvg: 'base',
        //         code: 'dlyh_a6_b12_1'
        //     },
        //     redirect: '/setting/base/road/index',
        //     children: [
        //         {
        //             path: 'road',
        //             name: 'RoadInfo',
        //             meta: {
        //                 title: '路网信息',
        //                 code: 'dlyh_b12_c20_1'
        //             },
        //             component: LayoutInset,
        //             redirect: '/setting/base/road/index',
        //             children: [
        //                 {
        //                     path: 'index',
        //                     name: 'RoadIndex',
        //                     meta: {
        //                         title: '列表'
        //                     },
        //                     component: () => import('@/views/setting/base/road/index'),
        //                     hide: true
        //                 },
        //                 {
        //                     path: 'detail',
        //                     name: 'RoadDetail',
        //                     meta: {
        //                         title: '详情',
        //                         activeMenu: '/setting/base/road/index'
        //                     },
        //                     component: () => import('@/views/setting/base/road/detail'),
        //                     hide: true
        //                 }
        //             ]
        //         },
        //         {
        //             path: 'bridge',
        //             name: 'BridgeInfo',
        //             meta: {
        //                 title: '桥梁信息',
        //                 code: 'dlyh_b12_c21_1'
        //             },
        //             component: LayoutInset,
        //             redirect: '/setting/base/bridge/index',
        //             children: [
        //                 {
        //                     path: 'index',
        //                     name: 'BridgeIndex',
        //                     meta: {
        //                         title: '列表'
        //                     },
        //                     component: () => import('@/views/setting/base/bridge/index'),
        //                     hide: true
        //                 },
        //                 {
        //                     path: 'detail',
        //                     name: 'BridgeDetail',
        //                     meta: {
        //                         title: '详情',
        //                         activeMenu: '/setting/base/bridge/index'
        //                     },
        //                     component: () => import('@/views/setting/base/bridge/detail'),
        //                     hide: true
        //                 }
        //             ]
        //         },
        //         {
        //             path: 'tunnel',
        //             name: 'TunnelInfo',
        //             meta: {
        //                 title: '隧道信息',
        //                 code: 'dlyh_b12_c22_1'
        //             },
        //             component: LayoutInset,
        //             redirect: '/setting/base/tunnel/index',
        //             children: [
        //                 {
        //                     path: 'index',
        //                     name: 'TunnelIndex',
        //                     meta: {
        //                         title: '列表'
        //                     },
        //                     component: () => import('@/views/setting/base/tunnel/index'),
        //                     hide: true
        //                 },
        //                 {
        //                     path: 'detail',
        //                     name: 'TunnelDetail',
        //                     meta: {
        //                         title: '详情',
        //                         activeMenu: '/setting/base/tunnel/index'
        //                     },
        //                     component: () => import('@/views/setting/base/tunnel/detail'),
        //                     hide: true
        //                 }
        //             ]
        //         }
        //     ]
        // },
        {
            path: 'business',
            component: LayoutInset,
            name: 'BusinessConfig',
            meta: {
                title: '业务配置',
                iconSvg: 'business-config',
                code: 'dlyh_a6_b13_1'
            },
            redirect: '/setting/business/maintenance-project',
            children: [
                // {
                //     path: 'content',
                //     name: 'TourContent',
                //     meta: {
                //         title: '巡查内容管理',
                //         code: 'dlyh_b11_c23_1'
                //     },
                //     redirect: '/setting/business/content/list',
                //     component: LayoutInset,
                //     children: [
                //         {
                //             path: 'list',
                //             name: 'ContentList',
                //             hide: true,
                //             meta: {
                //                 title: '列表',
                //                 componentName: 'ContentList',
                //                 details: ['ContentDetail', 'EditContent']
                //             },
                //             component: () => import('@/views/setting/business/content/list')
                //         },
                //         {
                //             path: 'detail',
                //             name: 'ContentDetail',
                //             hide: true,
                //             meta: {
                //                 title: '详情',
                //                 activeMenu: '/setting/business/content/list'
                //             },
                //             component: () => import('@/views/setting/business/content/detail')
                //         },
                //         {
                //             path: 'add',
                //             name: 'AddContent',
                //             hide: true,
                //             meta: {
                //                 title: '新建',
                //                 activeMenu: '/setting/business/content/list'
                //             },
                //             component: () => import('@/views/setting/business/content/add')
                //         },
                //         {
                //             path: 'edit',
                //             name: 'EditContent',
                //             hide: true,
                //             meta: {
                //                 title: '编辑',
                //                 activeMenu: '/setting/business/content/list'
                //             },
                //             component: () => import('@/views/setting/business/content/edit')
                //         }
                //     ]
                // },
                {
                    path: 'maintenance-project',
                    name: 'MaintenanceProjectConfig',
                    meta: {
                        title: '养护项目管理',
                        code: 'dlyh_b13_c23_1'
                    },
                    component: () => import('@/views/setting/business/maintenance-project')
                },
                {
                    path: 'maintenance-approval',
                    name: 'MaintenanceMeasurementApproval',
                    meta: {
                        title: '日常养护计量审批流程',
                        code: 'dlyh_b13_c93_1'
                    },
                    component: () => import('@/views/setting/business/maintenance-approval')
                },
                {
                    path: 'maintenance-project-approval',
                    name: 'MaintenanceMeasurementProjectApproval',
                    meta: {
                        title: '养护工程计量审批流程',
                        code: 'dlyh_b13_c94_1'
                    },
                    component: () => import('@/views/setting/business/maintenance-project-approval')
                }
            ]
        },
        {
            path: 'organization',
            component: LayoutInset,
            name: 'organizationManage',
            meta: {
                title: '机构管理',
                iconSvg: 'organization',
                code: 'dlyh_a6_b14_1'
            },
            redirect: '/setting/organization/user',
            children: [
                {
                    path: 'user',
                    name: 'User',
                    meta: {
                        title: '用户管理',
                        code: 'dlyh_b14_c24_1'
                    },
                    component: () => import('@/views/setting/organization/user')
                },
                {
                    path: 'framework',
                    name: 'Framework',
                    meta: {
                        title: '组织架构管理',
                        code: 'dlyh_b14_c25_1'
                    },
                    component: LayoutInset,
                    redirect: '/setting/organization/framework/index',
                    children: [
                        {
                            path: 'index',
                            name: 'FrameworkIndex',
                            meta: {
                                title: '列表'
                            },
                            component: () => import('@/views/setting/organization/framework/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'FrameworkDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/setting/organization/framework/index'
                            },
                            component: () => import('@/views/setting/organization/framework/detail'),
                            hide: true
                        }
                    ]
                }
            ]
        },
        {
            path: 'system',
            component: LayoutInset,
            name: 'systemManage',
            meta: {
                title: '系统管理',
                iconSvg: 'system',
                code: 'dlyh_a6_b15_1'
            },
            redirect: '/setting/system/dictionary/index',
            children: [
                {
                    path: 'dictionary',
                    name: 'Dictionary',
                    meta: {
                        title: '字典管理',
                        code: 'dlyh_b15_c26_1'
                    },
                    component: LayoutInset,
                    redirect: '/setting/system/dictionary/index',
                    children: [
                        {
                            path: 'index',
                            name: 'dictionaryIndex',
                            component: () => import('@/views/setting/system/dictionary/index'),
                            meta: {
                                title: '列表'
                            },
                            hide: true
                        },
                        {
                            path: 'subManage',
                            name: 'dictionarySubManage',
                            component: () => import('@/views/setting/system/dictionary/subitem'),
                            hide: true,
                            meta: {
                                title: '子项管理',
                                activeMenu: '/setting/system/dictionary/index'
                            }
                        }
                    ]
                },
                {
                    path: 'log',
                    name: 'Log',
                    meta: {
                        title: '系统日志',
                        code: 'dlyh_b15_c27_1'
                    },
                    component: () => import('@/views/setting/system/log')
                }
            ]
        }
    ]
}
export default setting
